import Vue from "vue";
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      meta: {hasTabbar: true},
      component: ()=>import('./../page/page-home.vue')
    },
    {
      path: '/mi',
      meta: {hasTabbar: true},
      component: ()=>import('./../page/page-mi.vue')
    },
    {
      path: '/type',
      meta: {hasTabbar: true},
      component: ()=>import('./../page/page-type.vue')
    },
    {
      path: '/shop',
      meta: {hasTabbar: true},
      component: ()=>import('./../page/page-shop.vue')
    },{
      path: '/my',
      meta: {hasTabbar: true},
      component: ()=>import('./../page/page-my.vue')
    },
    {
      path: '/list',
      component: ()=>import('./../page/page-list.vue')
    },
    {
      path: '/detail',
      component: ()=>import('./../page/page-goods-detail.vue')
    },
    {
      path: '/login',  // 登录界面
      component: ()=>import('./../page/page-login.vue')
    },
    {
      path: '/demo',  // 登录界面
      component: ()=>import('./../page/page-demo.vue')
    },
    {
      path: '/confirmOrder', // 确认订单
      component: ()=> import('./../page/page-confirmOrder.vue')
    },
    {
      path: '/orderList', // 确认订单
      component: ()=> import('./../page/page-order-list.vue')
    }
  ]
})
// router  整个路由模块
// 负责跳转界面  回退界面


// route  单独的路由
    // 这个路由的path  meta

export default router